<?php
namespace app\api\controller;

use app\api\model\MemberModel;
use think\Controller;
use think\Request;


class Login extends Api
{
    protected $noNeedLogin = ['*'];

    /*
     * 授权登录
     */
    public function wxLogin()
    {
        $data = (new MemberModel())->wxLogin($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }
}
